﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FileUpload.ascx.cs" Inherits="Rison.Web.ascx.FileUpload" %>
<script type="text/javascript">
    function BrowsePic_click(_this)
    {
        //alert($(_this).parent().parent().children("input"));
//        alert($("input[@type=file]"));
//        var o=$("input[@type=file]");
//        o.click();
      $(_this).parent().parent().children("input").click();
      //alert($(_this).parent().parent().children("input").val());
      $(_this).parent().children("input").val($(_this).parent().parent().children("input").val());
        
        //document.getElementById("ZwzglDetail1_FileUpload1_fileUpload").click();
        //document.getElementById("sb_form_q").value=document.getElementById("ZwzglDetail1_FileUpload1_fileUpload").value;
    }
</script>

<table cellpadding="0" cellspacing="0" border="0" style="width:290px">
    <tr>
        <td>            
            <input type="file" id="fileUpload" name="fileUpload" runat="server" class="input" style="display:none;"/>     
          <div class="sw_b"><input class="sw_qbox" id="sb_form_q" name="q" type="text" value="" />
              <%-- <input class="sw_qbtn" id="sb_form_go" name="go" tabindex="0" title="浏览"  type="button"/>  --%>
           <img class="sw_qbtn" alt="浏览"  src="../style/images/btnBrowse.jpg"  onclick="BrowsePic_click(this)" />    
           </div>
         </td>        
        <td valign="middle">
            <asp:ImageButton ID="btnUpload" runat="server" AlternateText="上传" ImageUrl="../style/images/btnUpload.jpg" Width="93" Height="29" BorderStyle="None" onclick="btnUpload_Click" />
        </td>
    </tr>  
    <tr>
        <td><asp:DropDownList ID="drpAtts" runat="server" Width="158px"></asp:DropDownList></td>
        <td valign="middle"><asp:ImageButton ID="btnDelete" runat="server" AlternateText="删除" ImageUrl="../style/images/btndelete.jpg"
                Width="93" Height="29" BorderStyle="None" onclick="btnDelete_Click" /></td>
    </tr>
</table>
<asp:ListBox ID="lstFileSize" runat="server" Visible="false"></asp:ListBox>
<asp:ListBox ID="lstFileExtension" runat="server" Visible="false"></asp:ListBox>
<asp:ListBox ID="lstContentType" runat="server" Visible="false"></asp:ListBox>

